<div class="commentForm" id="formComment">
    <form action="/addcomment"
          method="<?= $this->element->getMethod() ?>" >
        
        <?= $this->element->parentId?>
        <dd>
            
        
        
            
            
        <dt class="group">
            <span class="title">Меня зовут:</span>
            <? if ($this->currentUser()->getUserId()):?>
                <a href="#"><?=$this->currentUser()->getNickName()?></a>
                
            <? else:?>
                    Гость (<a href="./login">залогиниться</a>)
            <? endif;?>
            
        </dt>
        <dt class="group">
            
            <span class="element"><?= $this->element->commentText ?></span>
        </dt>
        <dt class="group">
            <span class="float-r button">
                <?= $this->element->submit ?>
            </span> 
        </dt>
        </dd>
    </form>
</div>